#!/usr/bin/env bash
# 安装开发工具：git, build-essential, python3-pip
set -Eeuo pipefail

type log_info >/dev/null 2>&1 || { echo "[install_dev] _common.sh 未加载"; exit 1; }

install_dev_tools() {
  ensure_root
  apt_quiet_update
  DEBIAN_FRONTEND=noninteractive apt-get install -y \
    git build-essential python3-pip
  log_info "开发工具安装完成：git build-essential python3-pip"
  # 轻度优化 pip 源（提示而不强行写）
  if command -v pip3 >/dev/null 2>&1; then
    pip3 --version || true
  fi
}
